package com.szq.pattern.factory;

import com.szq.pattern.bean.*;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-02 14:07:01
 */
public class USAFactory extends AbstractFactory {


    @Override
    public Chair createChair() {
        System.out.println("USA chair");
        return new USAChair();
    }

    @Override
    public Sofa createSofa() {
        System.out.println("USA chair");
        return new USASofa();
    }

    @Override
    public Table createTable() {
        System.out.println("USA chair");
        return new USATable();
    }
}
